home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Interactive Media Design Review 1999
/
Interactive Media Design Review 1999.iso
/
pc
/
Demos
/
Bombardier_PC
/
BSCRIPTS.CST
/
00066_Script_new map script
< prev
next >
Wrap
Text File
|
1999-04-25
|
2KB
|
71 lines
-- ⌐ 1998 @radical.media, inc. & Concurrent New Media Group, L.L.C.
-- Developed for Bombardier, Inc.
--
-- All programming developed by:
-- Robert Fabricant, Valerie Valoueva, Ossi Shaked,
-- Henry Sauvageot, Chris Howell & Chris Girand
--
-- Use of this code by parties other than @radical.media, inc. or their
--agents
-- without the express written consent of @radical.media, inc. AND Concurrent
-- New Media Group, L.L.C. is strictly prohibited.
------------------------------------------------------
-------*This script is not used in this version of the movie*----------
on get behaviorDescription
return "new map script"
end
on mouseEnter me
global gSub
if gSub <> the spritenum of me then
set the castnum of sprite the spritenum of me to the castnum of sprite the spritenum of me +1
updatestage
end if
end
on mouseleave me
global gSub
if gSub <> the spritenum of me then
set the castnum of sprite the spritenum of me to the castnum of sprite the spritenum of me-1
updatestage
end if
end
on mouseup me
global gPair,gSub,gBgimg
set gSub=the spritenum of me
if gPair <> "" and gPair<>the spritenum of me then
-- the secound city in a pair was selected.
-- we will allways concutanate the sprites, with the smaller sprite
-- first.
if gPair > the spritenum of me then
set gBgimg=the spritenum of me *100+gPair
else
set gBgimg=the spritenum of me+gPair*100
end if
set gPair=""
put gBgimg
--set the castnum of sprite 2 = bgimg
else
--the first city in a pair was selected.
set gPair=the spritenum of me
if gBgimg<>0 then
set sprt1=gBgimg/100
put sprt1
set sprt2=gBgimg-sprt1*100
put sprt2
set the castnum of sprite sprt1 to the castnum of sprite sprt1-1
set the castnum of sprite sprt2 to the castnum of sprite sprt2-1
updatestage
end if
end if
end